package com.hmall.api.client;

import com.baomidou.mybatisplus.extension.service.IService;
import com.config.DefaultFeign;
import com.fallback.TradeClientFallback;
import com.hmall.api.po.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;


@FeignClient(value = "trade-service",fallbackFactory = TradeClientFallback.class, configuration = DefaultFeign.class)//告诉SpringCloud这个接口是一个Feign客户端，要调用trade-service服务
public interface TradeClient {
    @PutMapping("/orders/{orderId}")
    public void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
